from django.contrib import admin
from df_goods.models import Goods
from django.contrib.admin import ModelAdmin
# Register your models here.


class GoodsAdmin(ModelAdmin):
    # 列表显示
    list_display = ['goods_name', 'goods_sub_title', 'goods_type_id', 'goods_price',
                    'goods_stock', 'goods_sales', 'goods_status']

    list_filter = ['goods_type_id']
    search_fields = ['goods_name']


admin.site.register(Goods, GoodsAdmin)